﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimpleEncryption.Contract
{
    /// <summary>
    /// One step in for the Simple Cryptographic algorithm
    /// </summary>
    public interface ICryptoStep
    {
        /// <summary>
        /// Encrypts the specified text with an fixed algorithm
        /// </summary>
        /// <param name="text">The text to encrypt</param>
        /// <param name="password">The password.</param>
        /// <returns>
        /// The encrypted text
        /// </returns>
        string Encrypt(string text, string password);

        /// <summary>
        /// Decrypts the specified text with an fixed algortihm
        /// </summary>
        /// <param name="text">The text to decrypt</param>
        /// <param name="password">The password.</param>
        /// <returns>
        /// the decrypted text
        /// </returns>
        string Decrypt(string text, string password);
    }
}
